package a3;

public class Department {
    private String name;
    private Instructor[] instructors;
    private Subject[] subjects;
    private int instructorCount;
    private int subjectCount;



    public void addInstructor(Instructor instructor) {
        instructors[instructorCount++] = instructor;
    }

    public void addSubject(Subject subject) {
        subjects[subjectCount++] = subject;
    }

    // 假设有一个方法来设置instructor的department属性（这里为了简化省略）
    // 其他方法和属性（如获取教师列表、获取课程列表等）...
}
